<%--
    Document   : indexE
    Created on : 3/05/2010, 12:32:37 PM
    Author     : Damc
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%
//borra el cache de la pag
response.setHeader( "Pragma", "no-cache" );
response.addHeader( "Cache-Control", "must-revalidate" );
response.addHeader( "Cache-Control", "no-cache" );
response.addHeader( "Cache-Control", "no-store" );
response.setDateHeader("Expires", 0);

HttpSession sesion = request.getSession();
try{
    if(!sesion.getAttribute("rol").equals(2) || sesion == null){
        sesion.invalidate();
        response.sendRedirect("../inicio.jsp");
    }
}catch(Exception w){ response.sendRedirect("../inicio.jsp");
}

sesion.setAttribute("path", application.getRealPath(""));
String error=(String)request.getAttribute("error");
if(error==null)error="";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <link href="../pagina.css" rel="stylesheet" type="text/css" />
        <script src="../js/Encriptacion.js" type="text/javascript"></script>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>PubliFacil: Publicidad para todos</title>
    </head>
    <body>
        <jsp:include page="../pag/cabe.jspf"/>
        <jsp:include page="../pag/izqE.jsp"/>
        <div id="central" class="clear-block">
            <div align="center">
                <h3>Informacion de la empresa</h3>
                Para terminar la creación de la empresa suba su banner
                Recuerde que tiene que ser un jpg o png
                <form  name="csv" method="POST" enctype='multipart/form-data'action="SubirImagen">
                    Banner:<input type="file" name="fichero" onBlur='LimitAttach(this,9);'><br>
                    <div align="center">
                        <input type="submit" name="upload">
                        <br>
                        <%=error%>
                        <br>
                    </div>
                </form>
            </div>
        </div>

        <jsp:include page="../pag/rede.jspf"/>
    </body>
</html>